import { defineConfig } from 'vitepress'
import path from 'path'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  vite: {
    resolve: {
      alias: {
        '@': path.resolve(__dirname, '../../src'),
        '@component': path.resolve(__dirname, '../../src/components'),
        '@style': path.resolve(__dirname, '../../src/style')
      }
    }
  },
  title: "Hi Design Vue",
  description: "个性化ui组件库",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '首页', link: '/' },
      { text: '指南', link: '/guide' },
      { text: '组件', link: '/components/button'}
    ],

    sidebar: {
      '/components/': [
        {
          text: '基础组件',
          items: [
            { text: 'Button按钮', link: '/components/button' }
          ]
        },
        {
          text: '数据输入',
          items: [
            { text: 'Checkbox复选框', link: '/components/checkbox' }
          ]
        }
      ]
    },
  }
})
